package com.androidx.p013lv.base.view;

import android.content.Context;
import android.graphics.Color;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.androidx.p013lv.base.C1010R;
import com.androidx.p013lv.base.utils.UiUtils;

/* renamed from: com.androidx.lv.base.view.LabelView */
public class LabelView extends TextView {
    public LabelView(Context context, String str) {
        super(context);
        setText(str);
        int dp2px = UiUtils.dp2px(5);
        setPadding(dp2px, 0, dp2px, 0);
        setBackgroundResource(C1010R.C1012drawable.shape_label_bg);
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-2, UiUtils.dp2px(16));
        layoutParams.rightMargin = UiUtils.dp2px(6);
        setLayoutParams(layoutParams);
        setTextSize(11.0f);
        setTextColor(Color.parseColor("#ffffff"));
        setGravity(16);
        setCompoundDrawablePadding(UiUtils.dp2px(2));
        setMaxLines(1);
    }
}
